package com.xoms.admin.service;

import com.xoms.admin.controller.res.bean.RProPureBackBean;
import com.xoms.admin.controller.res.bean.RProPureBackInfoBean;
import com.xoms.admin.model.AccountBean;
import com.xoms.admin.service.res.PageResult;

/**
 * 退货接口
 * @author admin
 *
 */
public interface ProPureBackService {

	/**
	 * 获取退货列表
	 * @param account
	 * @param key
	 * @param page
	 * @param pageSize
	 * @param startTime
	 * @param endTime
	 * @param storeHouseId
	 * @return
	 */
	PageResult<RProPureBackBean> getPureBacks(AccountBean account, int page, int pageSize, String startTime,
			String endTime, String storeHouseId);
	
	/**
	 * 获取退货明细列表
	 * @param account
	 * @param key
	 * @param page
	 * @param pageSize
	 * @param bid
	 * @param paging
	 * @return
	 */
	PageResult<RProPureBackInfoBean> getPureBackDetails(AccountBean account, String key, int page, int pageSize,
			String bid, int paging);
	
	/**
	 * 新建编辑退货单
	 * @param account
	 * @param bid
	 * @param purchaseId
	 * @param remark
	 * @param details
	 * @param isSubmit 
	 * @return
	 */
	RProPureBackBean edit(AccountBean account, String bid, String purchaseId, String remark, String details, int isSubmit);
	
	/**
	 * 删除退货单id
	 * @param account
	 * @param bid
	 * @return
	 */
	boolean del(AccountBean account, String bid);
	
	/**
	 * 提交审核退货单
	 * @param account
	 * @param bid
	 * @return
	 */
	boolean submitPureBack(AccountBean account, String bid);
	
}
